﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using WebOSCore.Models;
using Microsoft.AspNetCore.Authorization;

namespace WebOSCore.Controllers
{
    public class HomeController : Controller
    {
        public IActionResult Index()
        {
            

            Response.Redirect("index.html");//   RedirectResult("index.html");
            return View();
        }

        public IActionResult Privacy()
        {
            return View();
        }

        public IActionResult Error(int core)
        {

            Response.Redirect("/error.html?statusCode=" + core + "&error=" + HttpContext.Request.Path);//   RedirectResult("index.html");

            return View(new  { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });

        }
    }
}
